-
Couldn't load subscription status.
- Fork 147
Site performance optimizations. #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Is |
.gitignore
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/.idea should not be there. If should be in your global gitignore file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, true, I'll remove it here.
|
With the potential rebase on top of #200, that's all. |
|
assets/img/scala-js-site-logo.ai contains an editable version (where the text is real text, not just curves) of the logo. Needed for any changes in font etc. |
|
I also fixed the problem with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, so, if I understand this change correctly, this turns the top-left title text into an image. What motivated you to do this? To me, it seems this basically makes the user download two images instead of one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was to get rid of a font used solely for the site logo. Also alignment and sizing of the icon + text is difficult to control for different devices (especially if people zoom in/out), so a single logo image is better.
|
LGTM |
Reduce the number of requests and optimize resources. Using googleapis.com seems to be blocked in China, so moved all fonts local with different variants to support all browsers.
Uses the jekyll-assets processing pipeline, so some assets were moved under _assets. Bundled CSS and JS are hashed to support forever caching.
Site colors are now configured in the style.scss file instead of Jekyll _config.yml.
Front page load went from 23 requests down to 11 requests.